package com.bjdd.jdy.entity;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/6/5.
 */

public class HotMapBean {

    /**
     * consignerLng : 119.222864
     * consignerLat : 26.049457
     */

    private double consignerLng;
    private double consignerLat;

    public static HotMapBean objectFromData(String str) {

        return new Gson().fromJson(str, HotMapBean.class);
    }

    public static List<HotMapBean> arrayHotMapBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<HotMapBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public double getConsignerLng() {
        return consignerLng;
    }

    public void setConsignerLng(double consignerLng) {
        this.consignerLng = consignerLng;
    }

    public double getConsignerLat() {
        return consignerLat;
    }

    public void setConsignerLat(double consignerLat) {
        this.consignerLat = consignerLat;
    }
}
